package com.yhy.wxzn.wcs.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

import com.yhy.wxzn.wcs.entity.WcsLineTask;
import com.yhy.wxzn.wcs.enums.TaskStatus;
import com.yhy.wxzn.wcs.mapper.WcsLineTaskMapper;
import com.yhy.wxzn.wcs.service.IWcsLineTaskService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 输送线任务表
 * @Author: jeecg-boot
 * @Date:   2023-11-08
 * @Version: V1.0
 */
@Service
public class WcsLineTaskServiceImpl extends ServiceImpl<WcsLineTaskMapper, WcsLineTask> implements IWcsLineTaskService {

    @Override
    public List<WcsLineTask> getUnfinishedByTransmissionList() {
        LambdaQueryWrapper<WcsLineTask> taskQuery = new LambdaQueryWrapper<>();
        taskQuery.lt(WcsLineTask::getTaskStatus, TaskStatus.FINISH.getTaskProgress());
        return this.list(taskQuery);
    }
}
